package com.frikinet.lifeguard.events;

import com.frikinet.lifeguard.model.User;

public class YearMonthSelectedEvent extends AbstractEvent
{
	private User user;
	private int year;
	private int month;
	
	public YearMonthSelectedEvent(Object source, User user, int year)
	{
		super(source);
		this.user = user;
		this.year = year;
	}
	
	public YearMonthSelectedEvent(Object source, User user, int year, int month)
	{
		this(source, user, year);
		this.month = month;
	}

	public User getUser()
	{
		return user;
	}

	public void setUser(User post)
	{
		this.user = post;
	}

	public int getYear()
	{
		return year;
	}

	public void setYear(int year)
	{
		this.year = year;
	}

	public int getMonth()
	{
		return month;
	}

	public void setMonth(int month)
	{
		this.month = month;
	}
}
